package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.User;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface UserDao {
    User findByUsername(String username);

    Page<User> findPage(String queryString);

    void add(User user);

    User findUserById(Integer id);

    Integer[] findRoleIdsByUserId(Integer id);

    void update(User user);

    void deleteRoleIdsByUserId(Integer id);


    void delete(Integer id);

    User findWithMenusByUsername(String username);

    void updateStatus(Map<String, Integer> map);

    User findByTelephone(String telephone);

    void updatePassword(@Param("id") Integer id, @Param("password01") String password01);

    List<User> findHealth();

    String findImg(String username);

    void deleteUserAndRole(Integer id);

}
